Executing In-network Queries Using SNEE
نویسندگان
چکیده
The SNEE query optimizer enables users to characterize data requests against wireless sensor networks (WSNs), using a declarative query language called SNEEql (SNEE for SensorNEtworkEngine, described in [GBG11], and publicly available at http://code.google.com/p/snee). Queries are compiled into imperative query execution plans, which are translated into executable nesC source code. In this paper, we illustrate the lifecycle of a SNEEql queryQ for in-network execution. This lifecycle encompasses the steps of preparatory metadata collection, followed by the compilation of Q into a query execution plan QEP , the dissemination of binary images implementing QEP throughout the WSN, and the generation of query results. To demonstrate our approach, we monitor light in a building using a simple 3-node WSN, depicted in Fig. 1, comprising of TelosB motes. In our WSN, node 1 is the gateway node (i.e., the node from which commands and query execution plans are disseminated to the WSN, and also where query results are collected), and nodes 2 and 3 monitor light levels for the upstairs and downstairs areas of the building respectively. The schema comprises three logical streams, building, upstairs and downstairs, of type (id:int, time:int, light:int). The building stream is the union of the upstairs and downstairs streams. The example queries that we use to illustrate our approach are shown in Fig. 2. Query (a) requests all the light readings in the building; (b) requests the average value of the light readings in the building; and (c) requests light readings when the light level upstairs is higher than downstairs (i.e., it may indicate that someone has forgotten to switch off a light). The QoS expectations are both an acquisition interval and delivery time of 10s (i.e., query results need to be delivered before the next tuple is acquired).
منابع مشابه
Analyzing the Query Performance over a Distributed Network of Data Aggregators
Typically a user desires to obtain the value of some aggregation function over distributed data items. We present a low-cost, scalable technique to answer continuous aggregation queries using a network of aggregators of dynamic data items. In such a network of data aggregators, each data aggregator serves a set of data items at specific coherencies. Our technique involves decomposing a client q...
متن کاملReducing Network Traffic in Unstructured P 2 P Systems Using Top - k Queries 1
A major problem of unstructured P2P systems is their heavy network traffic. This is caused mainly by high numbers of query answers, many of which are irrelevant for users. One solution to this problem is to use Top-k queries whereby the user can specify a limited number (k) of the most relevant answers. In this paper, we present FD, a (Fully Distributed) framework for executing Top-k queries in...
متن کاملSESOS: A Verifiable Searchable Outsourcing Scheme for Ordered Structured Data in Cloud Computing
While cloud computing is growing at a remarkable speed, privacy issues are far from being solved. One way to diminish privacy concerns is to store data on the cloud in encrypted form. However, encryption often hinders useful computation cloud services. A theoretical approach is to employ the so-called fully homomorphic encryption, yet the overhead is so high that it is not considered a viable s...
متن کاملAdaptive Execution of Compiled Queries
Compiling queries to machine code is a very efficient way for executing queries. One often overlooked problem with compilation is the time it takes to generate machine code. Even with fast compilation frameworks like LLVM, generating machine code for complex queries often takes hundreds of milliseconds. Such durations can be a major disadvantage for workloads that execute many complex, but quic...
متن کاملEnergy-Conscious Data Aggregation Over Large-Scale Sensor Networks
Recent advances in hardware technology facilitate applications requiring large numbers of sensor devices, where each sensor device has computational, storage, and communication capabilities. Since sensor devices are powered by ordinary batteries, power is a limiting resource in sensor networks. Power usage can be reduced by pushing part of the computation into the network to reduce communicatio...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2011